﻿using GWB.Core.TableEntity.Common;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GWB.Core.TableEntity
{
    /// <summary>
    /// 开放发方法
    /// </summary>
    [SugarTable("Sys_Action")]
    public class Action : BaseEntity
    {
        /// <summary>
        /// 类名称
        /// </summary>
        [SugarColumn(ColumnDataType = "nvarchar(30)", ColumnDescription = "名字", IsNullable = true)]
        public string ClassName { get; set; }

        /// <summary>
        /// 方法名称
        /// </summary>
        [SugarColumn(ColumnDataType = "nvarchar(30)", ColumnDescription = "名字", IsNullable = true)]
        public string Name { get; set; }

        /// <summary>
        /// 方法代码
        /// </summary>
        [SugarColumn(ColumnDataType = "nvarchar(10)", ColumnDescription = "权限按钮Code", IsNullable = true)]
        public string Code { get; set; }

        [SugarColumn(ColumnDataType = "nvarchar(300)", ColumnDescription = "命名空间", IsNullable = true)]
        public string Namespace { get; set; }

        /// <summary>
        /// 路由
        /// </summary>
        [SugarColumn(ColumnDataType = "nvarchar(300)", ColumnDescription = "路由", IsNullable = true)]
        public string Route { get; set; }

        [SugarColumn(ColumnDataType = "nvarchar(10)", ColumnDescription = "请求方式", IsNullable = true)]
        public string RequestMode { get; set; }
    }
}
